package com.example.alibabanacosdiscoveryclient01.service;

import com.example.alibabanacosdiscoveryclient01.entity.BookEntity;
import org.springframework.ai.chat.model.ToolContext;

import java.util.List;

/**
 * @author:guoq
 * @date:2025/4/28
 * @descripion:
 */
public interface BookService {
    List<BookEntity> list(String all,ToolContext toolContex);
    List<BookEntity> findByName(String name,ToolContext toolContex);
    List<BookEntity> findByType(String type,ToolContext toolContex);
    List<BookEntity> findByAuthor(String author,ToolContext toolContex);

    int batchInsert(List<BookEntity> list);
}
